package com.myStoreinfoProvider.utils;

/**
 * 正则表达式工具
 * @author oahner
 * @create 2022-04-23 9:29
 */
public class RegxUtil {

    //手机号
    private static final String regxMobile = "^[1][3,4,5,6,7,8,9][0-9]{9}$";


    //验证手机号
    public static boolean checkMobile(String mobile){
        if(null != mobile && !"".equals(mobile) && mobile.matches(regxMobile)){
            return true;
        }
        return false;
    }


    public static void main(String[] args) {
        boolean b = RegxUtil.checkMobile("");
        System.out.println(b);
    }

}
